package com.example.spring3.bank;

import java.math.BigDecimal;

/**
 * 商品优惠信息
 */
public class GoodsCoupon {
    private String goodsId;
    //计算出优惠的金额
    private BigDecimal couponPrice;
    //默认是非折扣--以优惠金额计算
    private boolean discount = false;
    //折扣比例
    private Double discountPercent;

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Double getDiscountPercent() {
        return discountPercent;
    }

    public void setDiscountPercent(Double discountPercent) {
        this.discountPercent = discountPercent;
    }

    public boolean isDiscount() {
        return discount;
    }

    public void setDiscount(boolean discount) {
        this.discount = discount;
    }
}
